package com.itheima.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pojo.DishFlavor;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author 小帅蓝
 * @Date 2022/6/19 9:05
 */
@Data
public class AddDishDTO implements Serializable {

    private String id;
    private String name;
    private BigDecimal price;
    private String code;
    private String image;
    private String description;
    private Integer status;
    private String categoryId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String createUser;
    private String updateUser;
    private List<DishFlavor> flavors;

}
